using System.IO;
using System.Runtime.InteropServices;
using WindowsAPI.Service;

namespace WindowsAPI.PE
{
    [CopyRight("http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=63745")]
    public class ManagedCoffReader : BaseCoffReader
    {
        public ManagedCoffReader(string FileName) : base(FileName) { }

        protected override CoffHeader ParseInternal(BinaryReader br)
        {
            return new CoffHeader(br.ReadBytes(Marshal.SizeOf(typeof(CoffHeader))));
        }
    }
}